{template "header.html", "/"}
<div class="bread-box">
    <ul>
        {list action=category module=share pid=$top.id}
        <li class="{if $catid && in_array($catid, $t.catids)}on{/if}">
            <a href="{$t.url}">
                {$t.name}
            </a>
        </li>
        {/list}
    </ul>
</div>
<div class="main-box">
    <div class="case-show">
        <ul>
			{template "ajax_data.html"}
        </ul>
        <div class="loadMore"  onclick="dr_loading()">
            查看更多作品
        </div>
    </div>
</div>
<script type="text/javascript">
var dr_page = 1;
	function dr_loading() {
		dr_page++; // 加载下一页的意思
		
		$.get('{SITE_URL}index.php?s={MOD_DIR}&c=api&m=template&name=ajax_data.html&catid={$catid}&page='+dr_page, function (html) {
			if(!html){
				$('.loadMore').text('暂无更多作品');
			}else{
				$('.case-show ul').append(html); // 将返回的内容追加到内容区域
			}
			
		});
	}
</script>
{template "footer.html", "/"}